package com.qywx.service;

import com.qywx.entity.DepartmentEntity;
import com.qywx.utils.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DepartmentService {
    R save(DepartmentEntity department);

    List<DepartmentEntity> findByName(String name);

    R updateDepartment(DepartmentEntity departmentEntity);

    R delDepartmentById(Long id);

    List<DepartmentEntity> getDepartmentList();

    R asynchronousDetection();

    R synchronize();

    R findChildren(Long id);

    R delUser(String userid, Long departmentid);

    R saveDepartUser(String userid, Long departmentid);

    R getDepartBydepid(int depid);

    /*String findNameById(String s);*/
}
